package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.AntiepidemicMonitor;
import com.antdesignbackend.backend.entity.entityVo.AntiepidemicMonitorVo;
import com.antdesignbackend.backend.mapper.AntiepidemicMonitorMapper;
import com.antdesignbackend.backend.service.AntiepidemicMonitorService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AntiepidemicMonitorServiceImpl extends ServiceImpl<AntiepidemicMonitorMapper, AntiepidemicMonitor> implements AntiepidemicMonitorService {
    @Autowired
    AntiepidemicMonitorMapper antiepidemicMonitorMapper;
    @Override
    public List<AntiepidemicMonitorVo> search(@Param(Constants.WRAPPER) QueryWrapper<AntiepidemicMonitorVo> antiepidemicMonitorVoQueryWrapper, Page<AntiepidemicMonitorVo> antiepidemicMonitorVoPage){
        return antiepidemicMonitorMapper.search(antiepidemicMonitorVoQueryWrapper,antiepidemicMonitorVoPage);
    };
    @Override
    public Integer count(@Param(Constants.WRAPPER) QueryWrapper<AntiepidemicMonitorVo> antiepidemicMonitorVoQueryWrapper){
        return antiepidemicMonitorMapper.count(antiepidemicMonitorVoQueryWrapper);
    };
}
